package com.example.spark.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spark.entity.Cooperator;
import com.example.spark.entity.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface CooperatorService extends IService<Cooperator> {

    //查询合作单位
    CommonResult selectCooperator(Long id);

    //添加合作单位
    CommonResult addCooperator(Cooperator cooperator);

    //删除合作单位
    CommonResult deleteCooperator(Long id);

    //修改合作单位
    CommonResult updateCooperator(Cooperator cooperator);

    //图片上传
    CommonResult addPhoto(MultipartFile photoFile, Long id) throws IOException;
}
